<template>
  <div>
    <h1>{{ msg }}</h1>
  </div>
</template>

<script>
import { activeAccount } from "@/api/user";
export default {
  name: "Active",
  data() {
    return {
      isActive: false,
      msg: '激活码不能为空或已过期'
    }
  },
  created() {
    let code = this.$route.query.code;
    if (code) {
      activeAccount(code).then(res => {
        this.msg = res.msg;
      });
    }
  }
}
</script>

<style scoped>

</style>
